<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0"> {block name="title"} {include file="public/css" /} {/block}
</head>

<body class="gray-bg top-navigation">
    <div id="wrapper">
        <div id="page-wrapper" class="gray-bg">
            <!--导航栏  -->
            <div class="row border-bottom white-bg">
                <nav class="navbar navbar-static-top" role="navigation">
                    <div class="navbar-header">
                        <button aria-controls="navbar" aria-expanded="false" data-target="#navbar" data-toggle="collapse" class="navbar-toggle collapsed"
                            type="button">
                    <i class="fa fa-reorder"></i>
            </button>
                        <a href="{:url('index/index/index')}" class="navbar-brand">{:config('web.site_name')}</a>
                    </div>
                    <div class="navbar-collapse collapse" id="navbar">
                        <ul class="nav navbar-nav">
                            <li>
                                <a aria-expanded="false" role="button" href="{:url('index/index/index')}">首页</a>
                            </li>
                            <li class="dropdown">
                                <a aria-expanded="false" role="button" href="#" class="dropdown-toggle" data-toggle="dropdown">分类 <span class="caret"></span></a>
                                <ul role="menu" class="dropdown-menu">
                                    {foreach name="category_list" item="category"}
                                    <li><a href="{:url('index/index/category',array('flag'=>$category['flag']))}">{$category.name}</a>
                                    </li>
                                    {/foreach}
                                </ul>
                            </li>
                            <li class="">
                                <a href="{:url('index/index/archive')}">归档</a>
                            </li>
                            <li class="dropdown">
                                <a aria-expanded="false" role="button" href="#" class="dropdown-toggle" data-toggle="dropdown">关于<span class="caret"></span></a>
                                <ul role="menu" class="dropdown-menu">
                                    <li><a href="{:url('index/index/email')}">邮箱投稿</a></li>
                                    <li><a href="{:url('index/index/about')}">关于本站</a></li>
                                </ul>
                            </li>
                            <li class="">
                                <a href="{:url('index/index/message')}">留言</a>
                            </li>
                        </ul>
                        <ul class="nav navbar-top-links navbar-right">
                            <li>
                                {empty name="Think.session.user"}
                                <a href="{:url('index/action/login')}"><i class="fa fa-qq"></i>QQ登陆</a> {else/}
                                <a href="{:url('index/action/logout')}"><i class="fa fa-sign-out"></i>{$Think.session.user.nickname}</a>                                {/empty}
                            </li>
                        </ul>
                    </div>
                </nav>
            </div>
            <!--导航栏  -->
            <div class="wrapper wrapper-content main-content">
                <div class="row">
                    <!--内容  -->
                    {block name="content"}{/block}
                    <!--侧边内容  -->
                    <!--侧边栏  -->
                    <div class="col-sm-4 sider-info">
                        <!--个人信息  -->
                        <div class="row">
                            <div class="col-sm-12">
                                <div class="panel panel-primary text-center">
                                    <div class="panel-heading text-left">
                                        <i class="fa fa-id-card-o"></i>&nbsp;&nbsp;联系我
                                    </div>
                                    <div class="panel-body">
                                        <h3><strong>{$other_info.name|default='站长'}</strong></h3>
                                        <img src="{$other_info.avatar|default='__UPLOAD__/default_avatar.png'}" alt="{$other_info.name|default='站长'}" class="img-circle">
                                        <hr/>
                                        <a class="btn btn-success btn-circle" href="{$other_info.github|default='https://github.com/WangNingkai'}"><i class="fa fa-github-alt"></i></a>
                                        <a class="btn btn-info btn-circle" href="{$other_info.weibo|default='http://weibo.com/wangningkai0614'}"><i class="fa fa-weibo"></i></a>
                                        <a class="btn btn-warning btn-circle" href="{:url('index/index/email')}"><i class="fa fa-envelope"></i></a>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <!--置顶文章  -->
                        <div class="row">
                            <div class="col-sm-12">
                                <div class="panel panel-primary">
                                    <div class="panel-heading">
                                        <i class="fa fa-arrow-up"></i>&nbsp;&nbsp;热门文章
                                    </div>
                                    <div class="panel-body">
                                        <ul class="list-group no-padding">
                                            {foreach name="top_list" item="article_item"}
                                            <li class="list-group-item">
                                                <i class="fa fa-hand-o-right"></i>
                                                <a href="{:url('index/index/article',array('id'=>$article_item['id']))}" class="btn-link">
                                    {eq name="article_item.is_original" value="1"}[原创]{/eq}{$article_item.title}</a>
                                            </li>
                                            {/foreach}
                                        </ul>
                                    </div>
                                </div>
                            </div>

                        </div>
                        <!--标签云  -->
                        <div class="row">
                            <div class="col-sm-12">
                                <div class="panel panel-primary">
                                    <div class="panel-heading">
                                        <i class="fa fa-tags"></i>&nbsp;&nbsp;标签云
                                    </div>
                                    <div class="panel-body">
                                        {volist name="tag_list" id="tag" mod="5"}
                                        <a href="{:url('index/index/tag',array('flag'=>$tag['flag']))}" {switch name="mod" } {case value="0" }class="tag btn btn-xs btn-info"
                                            {/case} {case value="1" }class="tag btn btn-xs btn-danger" {/case} {case value="2"
                                            }class="tag btn btn-xs btn-primary" {/case} {case value="3" }class="tag btn btn-xs btn-success"
                                            {/case} <default/}class="tag btn btn-xs btn-warning" {/switch}>{$tag.name}</a>                                        {/volist}
                                    </div>
                                </div>
                            </div>
                        </div>
                        <!--友情链接  -->
                        <div class="row">
                            <div class="col-sm-12">
                                <div class="panel panel-primary">
                                    <div class="panel-heading">
                                        <i class="fa fa-link"></i>&nbsp;&nbsp;友情链接
                                    </div>
                                    <div class="panel-body">
                                        {foreach name="link_list" item="link"}
                                        <span class="simple_tag"><a href="{$link.url}" target="_blank">{$link.name}</a></span>                                        {/foreach}
                                    </div>
                                </div>
                            </div>
                        </div>
                        <!--站点搜索  -->
                        <div class="row">
                            <div class="col-sm-12">
                                <div class="panel panel-primary">
                                    <div class="panel-heading">
                                        <i class="fa fa-search"></i>&nbsp;&nbsp;全站搜索
                                    </div>
                                    <div class="panel-body">
                                        <form action="{:url('index/index/search')}" method="get">
                                            <div class="form-group">
                                                <input type="text" class="form-control" name="keyword" placeholder="搜索">
                                            </div>
                                        </form>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <!--侧边栏  -->
                </div>
            </div>
            <!--页脚  -->
            <div class="footer">
                <div class="pull-right">
                    {:config('web.site_icp_num')}
                </div>
                <div>
                    {:config('web.site_copyright')}
                </div>
            </div>
            <!--页脚  -->
        </div>
    </div>
    {block name="script"}{include file="public/js" /}{/block}
</body>

</html>